package ooday01.homework;

public class Doctor extends Person {
    String title;

    public Doctor() {

    }

    public Doctor(String name,int age,String address,String title) {
        this.name = name;
        this.age = age;
        this.address = address;
        this.title = title;
    }

    void cut(){
        System.out.println("住在"+address+"的"+age+"岁的职称为"+title+"的"+name+"正在做手术中...");
    }

}
